//
//  PilotTableViewController.h
//  Layout3
//
//  Created by Scott Guyer on 6/22/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@class RootPilotViewController;
@class EditPilotViewController;

@interface PilotListViewController : UITableViewController 
{	
	IBOutlet UIBarButtonItem*           doneBarItem;
	
	EditPilotViewController*			editPilotVC;
	
	// An Array of Character objects
	NSMutableArray*						pilotList;	
	
	Boolean                             editingPilot;
	NSUInteger							editingPilotIndex;
	Boolean                             addingPilot;
	
}

@property (nonatomic,retain) EditPilotViewController *editPilotVC;
@property (nonatomic,retain) NSMutableArray *pilotList;
@property (nonatomic,retain) UIBarButtonItem* doneBarItem;


- (void) setPilots:(NSMutableArray*)pilots ;
- (IBAction) addNewPilot:(id)sender ;
- (void) editPilot:(NSUInteger)idx ;


@end
